package com.netty.socket.gatewayClient;

import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * Created by Administrator on 2018/9/9/009.
 */
public class GatewayClientHandler extends ChannelInboundHandlerAdapter {
    @Override
    public void channelActive(ChannelHandlerContext ctx) throws Exception {
        Channel channel = ctx.channel();
        ChannelPool.addChannel(channel);
        System.out.println("channelActive connect:{}"+channel.isActive());
    }

}
